package com.carlinfo.hospital.service.impl;

import com.carlinfo.hospital.dao.impl.Doctor_personDaoImpl;
import com.carlinfo.hospital.pojo.Doctor_person;
import com.carlinfo.hospital.pojo.Person;
import com.carlinfo.hospital.service.Doctor_personService;
import com.carlinfo.hospital.util.PageInfoUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class Doctor_personServiceImpl implements Doctor_personService
{
    @Autowired
    private Doctor_personDaoImpl doctor_personDao;
    @Autowired
    private DoctorServiceImpl doctorService;
    @Autowired
    private PersonServiceImpl personService;

    @Override
    public int saveOneDao(Doctor_person doctor_person)
    {
        return doctor_personDao.saveOneDao(doctor_person);
    }

    @Override
    public List<Doctor_person> selectListDao(PageInfoUtil pageInfoUtil, Map<String, Object> condMap)
    {
        return doctor_personDao.selectListDao(pageInfoUtil, condMap);
    }

    @Override
    public Doctor_person selectOneDao(Map<String, Object> condMap)
    {
        return doctor_personDao.selectOneDao(condMap);
    }

    @Override
    public int updateOneDao(Doctor_person doctor_person)
    {
        return doctor_personDao.updateOneDao(doctor_person);
    }

    @Override
    public int deleteOneDao(Map<String, Object> condMap)
    {
        return doctor_personDao.deleteOneDao(condMap);
    }
}
